package com.hongxun.modules.csg.entity.dxf;

//import com.designpass.cloud.tools.CoordinateUtil;
//import org.jeecgframework.core.util.StringUtil;

/**
 * Created by xiaoji on 2016/7/28.
 * 三角形覆盖物
 */
public class TriangleHatch {
    public String id;//句柄
    public String x1;
    public String y1;
    public String x2;
    public String y2;
    public String x3;
    public String y3;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public TriangleHatch(String points, String height){
        if(points !=null && !points.equals("")){
            String[] arr = points.split(",");
            x1=arr[0];
            y1= CoordinateUtil.correctYCoord(arr[1],height);
            x2=arr[2];
            y2=CoordinateUtil.correctYCoord(arr[3],height);
            x3=arr[4];
            y3=CoordinateUtil.correctYCoord(arr[5],height);
        }
    }

    public String getX1() {
        return x1;
    }

    public void setX1(String x1) {
        this.x1 = x1;
    }

    public String getY1() {
        return y1;
    }

    public void setY1(String y1) {
        this.y1 = y1;
    }

    public String getX2() {
        return x2;
    }

    public void setX2(String x2) {
        this.x2 = x2;
    }

    public String getY2() {
        return y2;
    }

    public void setY2(String y2) {
        this.y2 = y2;
    }

    public String getX3() {
        return x3;
    }

    public void setX3(String x3) {
        this.x3 = x3;
    }

    public String getY3() {
        return y3;
    }

    public void setY3(String y3) {
        this.y3 = y3;
    }
}
